QuickDraw 3D provides routines that you can use to create and manipulate mipmap textures. A mipmap is stored in a structure of type TQ3Mipmap, which may contain up to 32 images of type TQ3MipmapImage:
typedef struct TQ3Mipmap {
TQ3StorageObject image;
TQ3Boolean useMipmapping;
TQ3PixelType pixelType;
TQ3Endian bitOrder;
TQ3Endian byteOrder;
unsigned long reserved; /* NULL */
TQ3MipmapImage mipmaps[32];
} TQ3Mipmap;
typedef struct TQ3MipmapImage {
unsigned long width;
unsigned long height;
unsigned long rowBytes;
unsigned long offset;
} TQ3MipmapImage;
You can use the Q3MipmapTexture_New function to create a new mipmap texture.
TQ3TextureObject Q3MipmapTexture_New (const TQ3Mipmap *mipmap);
You can use the Q3MipmapTexture_GetMipmap function to get the mipmap associated with a mipmap texture object.
TQ3Status Q3MipmapTexture_GetMipmap (
TQ3TextureObject texture,
TQ3Mipmap *mipmap);
You can use the Q3MipmapTexture_SetMipmap function to set the mipmap associated with a mipmap texture object.
TQ3Status Q3MipmapTexture_SetMipmap (
TQ3TextureObject texture,
const TQ3Mipmap *mipmap);